package com.leolian.code.fragment.book.javaweb.chapter12;

import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.handler.ContextHandler;

public class StartServlet {
	public static void main(String[] args) throws Exception{
		Server server = new Server(8080);
		ContextHandler context = new ContextHandler();
		context.setContextPath("/");
		context.setResourceBase(".");
		context.setClassLoader(Thread.currentThread().getContextClassLoader());
		server.setHandler(context);
		//context.setHandler(new HelloHandler());
		server.start();
		server.join();
	}
}